const salt = require("config-lite")(__dirname).salt;
const md5 = require("crypto");//加密
/**
 * md5 加密
 * @param {*} data 
 */
exports.md5 = (pwd)=>{
    return md5.createHash("sha512",salt).update(pwd).digest("hex");
}